package com.bupt.uchouten.common;

import com.bupt.uchouten.common.register.*;
import net.minecraftforge.eventbus.api.IEventBus;
import net.minecraftforge.eventbus.api.SubscribeEvent;
import net.minecraftforge.fml.common.Mod;
import net.minecraftforge.registries.RegisterEvent;

import static com.bupt.uchouten.common.util.Reference.MODID;

@Mod.EventBusSubscriber(modid = MODID, bus = Mod.EventBusSubscriber.Bus.MOD)
public final class UchoutenContent {
	public static void modConstruction(IEventBus modEventBus) {
		UchoutenItems.init(modEventBus);
		UchoutenBlocks.init(modEventBus);
		UchoutenBlockEntities.init(modEventBus);
		UchoutenCreativeTabs.init(modEventBus);
	}

	public static void preInit() {

	}

	/**
	 * Put something that should be registered as early as vanilla does.
	 * @param event Register Event Object.
	 */
	@SubscribeEvent
	public static void onRegister(RegisterEvent event) {
		UchoutenSounds.init(event);
		UchoutenEntities.init(event);
	}

	private UchoutenContent() {
	}
}
